package it.marcomondini.proximitytools;

import it.marcomondini.proximitytools.facades.LocationFacade;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ProxAlertActivity extends Activity {
					
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button savePointButton = (Button) findViewById(R.id.save_point_button);
        
        savePointButton.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {
				LocationFacade.instance().registerNewLocation();
			}
		});
        
        Button evaluateDistance = (Button) findViewById(R.id.evaluate_distance_button);
        
        evaluateDistance.setOnClickListener(new OnClickListener() {			
			@Override
			public void onClick(View v) {
				LocationFacade.instance().evaluateDistance();
			}
		});
        
       
    }
    
}